package by.home;


import java.util.ArrayList;

public interface ChatServiceInterface {

  public ChatRoom createChatRoom(String header);

  public boolean createMessage(String content, String author, int chatRoomId);

  public ChatRoom getChatRoomWithMessages(int chatRoomId);

  public ChatRoom getChatRoom(int chatRoomId);

  public boolean updateChatRoomContent(int chatRoomId, String content);

  public ArrayList<ChatRoom> getAllChatRooms();

  public void setUserOnline(int chatRoomId);

  public void setUserOffline(int chatRoomId);

}
